﻿using GomokuCore;
using Infrastructure.UI;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Media.Imaging;
using Windows.UI.Xaml.Navigation;

namespace Gomoku
{
    public sealed partial class MainPage : Gomoku.Common.LayoutAwarePage
    {
        public MainPage()
        {
            this.InitializeComponent();

            this.EnablePrivacyPolicy(PrivacyPolicy.RunXiaDianQi);
        }

        protected override void LoadState(Object navigationParameter, Dictionary<String, Object> pageState)
        {
            
        }

        protected override void SaveState(Dictionary<String, Object> pageState)
        {
        }

        private void singlePlayerButton_Click(object sender, RoutedEventArgs e)
        {
            Frame.Navigate(typeof(PlayPage), GameMode.SinglePlayer);
        }

        private void multiPlayerButton_Click(object sender, RoutedEventArgs e)
        {
            Frame.Navigate(typeof(PlayPage), GameMode.MultiPlayer);
        }

        private void playOnlineButton_Click(object sender, RoutedEventArgs e)
        {
            Frame.Navigate(typeof(PlayPage), GameMode.Network);
        }
    }
}
